using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
using System.Collections.Generic;

namespace Abp.EntityFrameworkCore.Uow;

public class ActiveTransactionInfo
{
    public IDbContextTransaction DbContextTransaction { get; }

    public DbContext StarterDbContext { get; }

    public List<DbContext> AttendedDbContexts { get; }

    public ActiveTransactionInfo(IDbContextTransaction dbContextTransaction, DbContext starterDbContext)
    {
        DbContextTransaction = dbContextTransaction;
        StarterDbContext = starterDbContext;

        AttendedDbContexts = new List<DbContext>();
    }
}